#!/bin/bash
# dock
defaults write com.apple.systempreferences AttentionPrefBundleIDs 0
defaults write com.apple.dock "mineffect" -string "scale"
defaults write com.apple.dock "show-recents" -bool "false"
defaults write com.apple.dock "minimize-to-application" -bool "true" && killall Dock

# keyrepeat

defaults write -globalDomain InitialKeyRepeat -int 15
defaults write -globalDomain KeyRepeat -int 2

# tab key
defaults write -globalDomain AppleKeyboardUIMode -int 2
defaults write com.apple.AppleMultitouchMouse MouseButtonMode "TwoButton"
# caps_to_escape,not work
# defaults write com.apple.systempreferences "NSWindow Frame Main Window Frame SystemPreferencesApp 8.0" -string "274 572 668 544 0 0 2560 1415  "

# finder
#defaults write com.apple.finder "_FXSortFoldersFirstOnDesktop" -bool "true"
#defaults write com.apple.universalaccess "showWindowTitlebarIcons" -bool "true"
#defaults write com.apple.finder "FXDefaultSearchScope" -string "SCcf"
defaults write com.apple.finder "QuitMenuItem" -bool "true"
#defaults write com.apple.finder "ShowPathbar" -bool "true"
#defaults write com.apple.finder "_FXSortFoldersFirst" -bool "true"
#defaults write com.apple.finder "FXEnableExtensionChangeWarning" -bool "false" && killall Finder

#mouse
#defaults write com.apple.driver.AppleBluetoothMultitouch.mouse MouseButtonMode  -string  TwoButton
#defaults write com.apple.AppleMultitouchMouse MouseButtonMode  -string  TwoButton

#sound

# defaults read NSGlobalDomain "com.apple.sound.beep.feedback"
# defaults write NSGlobalDomain "com.apple.sound.beep.feedback" -bool "true"

#trackpad

#三指拖动
# defaults write com.apple.AppleMultitouchTrackpad "TrackpadThreeFingerDrag" -bool "true"
# defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad "TrackpadThreeFingerDrag" -bool "true"

#静默点按
# defaults read com.apple.AppleMultitouchTrackpad ActuationStrength
# defaults write com.apple.AppleMultitouchTrackpad ActuationStrength -bool "false"

#轻点来点按
#defaults read com.apple.AppleMultitouchTrackpad Clicking
#defaults read com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking
# defaults write com.apple.AppleMultitouchTrackpad Clicking -bool "true"
# defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool "true"

#清除系统更新标记
# defaults write com.apple.systempreferences AttentionPrefBundleIDs 0 && Killall Dock
#

# .ds_store
# defaults write com.apple.desktopservicesDSDontWriteNetworkStores true
